package com.woniuxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.DishCategory;
import com.woniuxy.entity.Specs;
import com.woniuxy.entity.vo.SpecByDish;

import java.util.List;
import java.util.Map;


public interface SpecsService extends IService<Specs> {
    void add(Specs specs);

    public void update(Specs specs);

    List<Specs> getByCondition(Specs specs);

    void delById(int id);

    Specs getByName(String name);

    List<Specs> getAll();

    /**
     * 根据菜品Id获取规格，差价的键值对
     * @return
     */
    List<SpecByDish> getSpecsByDishId(Integer dishId);
}
